 
<header id="header" class="mui-bar mui-bar-black mui-bar-nav">
    <a class="mui-icon mui-icon-left-nav mui-pull-left"   href="{:url('user/index')}"></a>
    <h1 class="mui-title">新增进度</h1>
</header>
<form  method="POST" action="">
<br><br><br>
<div class="mui-content mui-content-my addProject schedule">
    <div class="mui-input-row">
        <label>工种类别</label>
         <select id="progress_type" name="progress_type" style="font-size: 1.5em;"> 
                    <option value="1">工地进度</option> 
                    <option value="2">结算单</option> 
        </select>  
    </div>
    <div class="mui-input-row" id="showUserPicker">
        <label>所属工地</label>
        <input id="site_id" name='site_id' type='hidden'>
        <input id="userResult"  name='progress_building'  readonly type="text" placeholder="请选择工地"  class="my-icon-arrowright">
    </div>
   <!--  <div class="mui-input-row">
        <label>工程名称</label>
        <input type="text" name='progress_building' placeholder="请输入工程名称">
    </div> -->
    <div class="mui-input-row">
        <label>单位</label>
        <input type="text"  name='progress_unit' >
    </div>
    <div class="mui-input-row">
        <label>工程量</label>
        <input type="text"  name='progress_quantities' >
    </div>
    <div class="mui-input-row input-row-txt">
        <label>综合单价</label>
        <input type="text"  name='progress_unitprice'><label>元</label>
    </div>
    <div class="mui-input-row">
        <label>合计</label>
        <input type="text" name='progress_amount' >
    </div>
    <div class="mui-input-row input-row-txt">
        <label>完工量</label>
        <input type="text"  name='progress_completions' ><label>%</label>
    </div>
    <div class="mui-input-row input-row-txt">
        <label>小计</label>
        <input type="text"  name='progress_subtotal' ><label>元</label>
    </div>
</div>

<div class="mui-content-padded"><a href="{:url('site/schedule_add')}">
    <button style="background: linear-gradient(-90deg, #3383FD, #78C2FF);border: none" type="submit" class="mui-btn mui-btn-primary mui-btn-block">提交</button></a>
</div>
</form>
<script src="__CDN__/style/js/jquery-1.11.3.js"></script>
<script src="__CDN__/style/js/mui.poppicker.js"></script>
<script src="__CDN__/style/js/mui.picker.min.js"></script>
<script src="__CDN__/style/js/city.data.js"></script>
<script>
    (function($,doc) {
        $.init();
        var userPicker = new $.PopPicker();
        userPicker.setData({$siteList});
        var showUserPickerButton = doc.getElementById('showUserPicker');
        var userResult = doc.getElementById('userResult');
        showUserPickerButton.addEventListener('tap', function(event) {
            userPicker.show(function(items) {
                var rul= JSON.stringify(items[0].text);
                doc.getElementById('site_id').value = JSON.stringify(items[0].value);
                var rula=rul.replace('"','').replace('"','');
                userResult.value = rula;
                //返回 false 可以阻止选择框的关闭
                //return false;
            });
        }, false);
    })(mui,document);
</script>
 